package com.duan.pojo.entity;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

/**
 * @author duanb
 * @date 2022/2/9 10:57
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(indexName = "report_history",shards = 5, replicas = 0)
public class ReportHistory implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 报告id
     * */
    @Id
//    @JsonSerialize(using= ToStringSerializer.class)
    private Long id;

    /**
     * 报告名称
     * */
    @Field(type = FieldType.Keyword)
    private String reportTitle;

    /**
     * 报告创建人
     * */
    @Field(type = FieldType.Keyword)
    private String reportAuthor;

    /**
     * 报告说明
     * */
    @Field(type = FieldType.Keyword)
    private String reportRemark;

    /**
     * 报告阅读数
     * */
    @Field(type = FieldType.Keyword)
    private Long reportCount;

    /**
     * 报告内容
     * */
    @Field(type = FieldType.Keyword)
    private String reportContent;

    /**
     * 创建时间
     * */
    @Field(type = FieldType.Keyword)
    private Date createTime;

    /**
     * 修改时间
     * */
    @Field(type = FieldType.Keyword)
    private Date updateTime;
}
